<?php
namespace app\common\model;
use think\Model;

class FinanceRecharge extends Base
{
   protected $autoCheckFields = true;
   public  function getlist($where='',$order='',$limit='10'){

     return $list = $this->where($where)->order($order)->paginate($limit);
  
   }
  public function edit($data,$where){
      if(empty($data) || !is_array($data)){ 
          return false;
        }
      return $this->save($data,$where);
  }
   
   public function del($id){
   	if(is_array($id)){
   	  $id = implode(',',$id);
   	}

   	 $where['id'] = $id;
     if($this->where($where)->delete()){
       return true;
     }else{
       return false;
     }
   }


}
